//引入重置样式 公共样式 和其他样式 =》swiper
@import"../../assets/css/reset.css";
@import"../../assets/css/common.css";
@import"../../assets/libs/fonts/iconfont.css";

//头部独立样式
header {
    border-bottom: 1px solid rgb(185, 207, 239);

    .register {
        a {
            color: fff !important;
        }
    }

    nav {
        a {
            color: #000;
        }
    }

    .login {
        a {
            color: #000;
        }
    }
}

main {

    // API分类
    h2 {
        margin: 50px 0 35px 0;
        font-size: 18px;
    }

    //API分类动态生成详请
    ul:nth-child(2) {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 55px;

        li {
            padding: 5px 10px;
            border: 1px solid #ccc;
            border-radius: 10px;
            margin: 0 10px 15px 0;
        }

        .active {
            border-color: rgb(0, 189, 255);
            color: rgb(0, 189, 255);
        }

    }

    //API分类搜索按钮
    .search {
        position: relative;
        margin-bottom: 50px;

        span:nth-child(1) {
            font-weight: 900;
            margin-right: 30px;
        }

        input {
            width: 250px;
            height: 30px;
            border-radius: 15px;
            background-color: rgb(244, 244, 244);
            outline: none;
            border: none;
            text-indent: 20px;
        }

        .icon-sousuo {
            position: absolute;
            top: 6px;
            left: 288px;
            font-size: 22px;
        }

    }

    // <!-- API动态生成图文内容 -->
    .searchUl {
        height: 1030px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-content: space-between;
        margin-bottom: 50px;

        li {
            height: 245px;
            width: 225px;
            border: 1px solid #ccc;
            position: relative;
            overflow: hidden;

            .center {
                height: 125px;
                width: 210px;
                // background-color: rgb(101, 172, 85);
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: center;

                img {
                    height: 65px;
                    width: 65px;
                }
            }

            // 申请数据按钮
            button {
                position: absolute;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
                width: 90%;
                height: 30px;
                border: none;
                background-color: rgb(0, 189, 255);
                color: #fff;
                margin-bottom: -30px;
                transition: all 500ms;
            }

        }

        // <!-- API动态生成图文内容hover效果 -->
        li:hover button {
            margin-bottom: 0px;
            cursor: pointer;
        }
    }

    //分页符
    .break {
        width: 570px;
        height: 45px;
        margin: 40px auto 0 auto;

        a {
            display: inline-block;
            margin: 0 10px;
            height: 100%;
            width: 30px;
        }
    }

}


//footer
footer {
    margin-top: 100px;
}